{{define "main"}}
	<h2>Index</h2>
	<p><a href="/admin/create">Create →</a></p>
	
	{{if .posts}}
		<ul>
			{{range .posts}}
				<li><a href="/admin/edit/{{.Id}}">{{.Url}}</a></li>
			{{end}}
		</ul>
	{{end}}

	<form method="post" action="/admin/logout">
		<fieldset><input type="submit" value="Log out" /></fieldset>
	</form>
{{end}}